﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VERKProjectHopur16.Models
{
    public interface IDataRepository
    {
        /// <summary>
        /// Interface created for testing(Mock)
        /// </summary>
        /// <returns></returns>
        IEnumerable<Content> GetAllContent();
        Content GetContentById(int id);
        void UpdateContent(Content s);
        void AddContent(Content model);
        void DeleteContent(Content model);
        IEnumerable<Eventss> GetAllEvent();
        Eventss GetEventById(int id);
        void UpdateEvent(Eventss model);
        void AddEvent(Eventss model);
        void DeleteEvent(Eventss model);
        IEnumerable<QA> AllQA();
        QA GetQAById(int id);
        void UpdateQA(QA model);
        void UpdateQAAnswer(QA model);
        void AddQA(QA model);
        void DeleteQA(QA model);
        IEnumerable<Link> GetAllLink();
        Link GetLinkById(int id);
        void UpdateLink(Link model);
        void AddLink(Link model);
        void DeleteLink(Link model);
        IEnumerable<Department> GetAllDept();
        IEnumerable<Category> GetAllCateg();
        IEnumerable<Language> GetAllLang();
        IEnumerable<Author> GetAllAuthors();
        Author GetAuthorById(int id);
        void UpdateAuthor(Author model);
        void AddAuthor(Author model);
        void DeleteAuthor(Author model);
        IEnumerable<Child> AllChilds();
        Child GetChildById(int id);
        void AddChild(Child model);
        void DeleteChild(Child model);
        IEnumerable<Picture> AllPictures();
        void AddPicture(Picture model);
        IEnumerable<aspnet_Membership> AllUsers();
        aspnet_User GetUserById(string id);
        IEnumerable<aspnet_UsersInRole> AllRoles();
    }
}